﻿using Os.Domain;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using MySql.Data.MySqlClient;
using System.Collections.Generic;
using System.Data;

namespace Os.Test
{
    
    
    /// <summary>
    ///This is a test class for EquipamentoTest and is intended
    ///to contain all EquipamentoTest Unit Tests
    ///</summary>
    [TestClass()]
    public class EquipamentoTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Equipamento Constructor
        ///</summary>
        [TestMethod()]
        public void EquipamentoConstructorTest()
        {
            int idEquipamento = 0; // TODO: Initialize to an appropriate value
            Equipamento target = new Equipamento(idEquipamento);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for Equipamento Constructor
        ///</summary>
        [TestMethod()]
        public void EquipamentoConstructorTest1()
        {
            Equipamento target = new Equipamento();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for CompleteObject
        ///</summary>
        [TestMethod()]
        public void CompleteObjectTest()
        {
            Equipamento target = new Equipamento(); // TODO: Initialize to an appropriate value
            target.CompletarObjeto();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Delete
        ///</summary>
        [TestMethod()]
        public void DeleteTest()
        {
            int parIdEquipamento = 0; // TODO: Initialize to an appropriate value
            Equipamento.Remover(parIdEquipamento);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Delete
        ///</summary>
        [TestMethod()]
        public void DeleteTest1()
        {
            MySqlTransaction trans = null; // TODO: Initialize to an appropriate value
            int parIdEquipamento = 0; // TODO: Initialize to an appropriate value
            Equipamento.Remover(trans, parIdEquipamento);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for GetParameters
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void GetParametersTest()
        {
            Equipamento_Accessor target = new Equipamento_Accessor(); // TODO: Initialize to an appropriate value
            List<MySqlParameter> expected = null; // TODO: Initialize to an appropriate value
            List<MySqlParameter> actual;
            actual = target.ObterParametros();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Insert
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void InsertTest()
        {
            Equipamento_Accessor target = new Equipamento_Accessor(); // TODO: Initialize to an appropriate value
            target.Inserir();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Insert
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void InsertTest1()
        {
            Equipamento_Accessor target = new Equipamento_Accessor(); // TODO: Initialize to an appropriate value
            MySqlTransaction trans = null; // TODO: Initialize to an appropriate value
            target.Inserir(trans);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for CarregarTodos
        ///</summary>
        [TestMethod()]
        public void CarregarTodosTest()
        {
            List<Equipamento> expected = null; // TODO: Initialize to an appropriate value
            List<Equipamento> actual;
            actual = Equipamento.CarregarTodos();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for LoadByCliente
        ///</summary>
        [TestMethod()]
        public void LoadByClienteTest()
        {
            Cliente objCliente = null; // TODO: Initialize to an appropriate value
            List<Equipamento> expected = null; // TODO: Initialize to an appropriate value
            List<Equipamento> actual;
            actual = Equipamento.CarregarPorCliente(objCliente);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CarregarDadosBanco
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void CarregarDadosBancoTest()
        {
            Cliente objCliente = null; // TODO: Initialize to an appropriate value
            IDataReader expected = null; // TODO: Initialize to an appropriate value
            IDataReader actual;
            actual = Equipamento_Accessor.CarregarDados(objCliente,null,null);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CarregarDadosBanco
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void CarregarDadosBancoTest1()
        {
            int idEquipamento = 0; // TODO: Initialize to an appropriate value
            IDataReader expected = null; // TODO: Initialize to an appropriate value
            IDataReader actual;
            actual = Equipamento_Accessor.CarregarDados(idEquipamento);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CarregarObjeto
        ///</summary>
        [TestMethod()]
        public void CarregarObjetoTest()
        {
            int idEquipamento = 0; // TODO: Initialize to an appropriate value
            Equipamento expected = null; // TODO: Initialize to an appropriate value
            Equipamento actual;
            actual = Equipamento.CarregarObjeto(idEquipamento);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Loadadoeport
        ///</summary>
        [TestMethod()]
        public void LoadadoeportTest()
        {
            Cliente objCliente = null; // TODO: Initialize to an appropriate value
            string localizacao = string.Empty; // TODO: Initialize to an appropriate value
            string modelo = string.Empty; // TODO: Initialize to an appropriate value
            List<Equipamento> expected = null; // TODO: Initialize to an appropriate value
            List<Equipamento> actual;
            actual = Equipamento.CarregarRelatorio(objCliente, localizacao, modelo);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Save
        ///</summary>
        [TestMethod()]
        public void SaveTest()
        {
            Equipamento target = new Equipamento(); // TODO: Initialize to an appropriate value
            MySqlTransaction trans = null; // TODO: Initialize to an appropriate value
            target.Salvar(trans);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Save
        ///</summary>
        [TestMethod()]
        public void SaveTest1()
        {
            Equipamento target = new Equipamento(); // TODO: Initialize to an appropriate value
            target.Salvar();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for RealizarPersistencia
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void RealizarPersistenciaTest()
        {
            IDataReader dado = null; // TODO: Initialize to an appropriate value
            Equipamento objEquipamento = null; // TODO: Initialize to an appropriate value
            Equipamento_Accessor.PreencherInstancia(dado, objEquipamento);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for SetParameters
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void SetParametersTest()
        {
            Equipamento_Accessor target = new Equipamento_Accessor(); // TODO: Initialize to an appropriate value
            List<MySqlParameter> parms = null; // TODO: Initialize to an appropriate value
            target.PreencherParamentros(parms);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Update
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void UpdateTest()
        {
            Equipamento_Accessor target = new Equipamento_Accessor(); // TODO: Initialize to an appropriate value
            target.Atualizar();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Update
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void UpdateTest1()
        {
            Equipamento_Accessor target = new Equipamento_Accessor(); // TODO: Initialize to an appropriate value
            MySqlTransaction trans = null; // TODO: Initialize to an appropriate value
            target.Atualizar(trans);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Cliente
        ///</summary>
        [TestMethod()]
        public void ClienteTest()
        {
            Equipamento target = new Equipamento(); // TODO: Initialize to an appropriate value
            Cliente expected = null; // TODO: Initialize to an appropriate value
            Cliente actual;
            target.Cliente = expected;
            actual = target.Cliente;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Data
        ///</summary>
        [TestMethod()]
        public void DataTest()
        {
            Equipamento target = new Equipamento(); // TODO: Initialize to an appropriate value
            DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime actual;
            target.Data = expected;
            actual = target.Data;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Descricao
        ///</summary>
        [TestMethod()]
        public void DescricaoTest()
        {
            Equipamento target = new Equipamento(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            target.Descricao = expected;
            actual = target.Descricao;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for IdEquipamento
        ///</summary>
        [TestMethod()]
        public void IdEquipamentoTest()
        {
            Equipamento target = new Equipamento(); // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            target.IdEquipamento = expected;
            actual = target.IdEquipamento;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Localizacao
        ///</summary>
        [TestMethod()]
        public void LocalizacaoTest()
        {
            Equipamento target = new Equipamento(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            target.Localizacao = expected;
            actual = target.Localizacao;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Marca
        ///</summary>
        [TestMethod()]
        public void MarcaTest()
        {
            Equipamento target = new Equipamento(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            target.Marca = expected;
            actual = target.Marca;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Modelo
        ///</summary>
        [TestMethod()]
        public void ModeloTest()
        {
            Equipamento target = new Equipamento(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            target.Modelo = expected;
            actual = target.Modelo;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Observacao
        ///</summary>
        [TestMethod()]
        public void ObservacaoTest()
        {
            Equipamento target = new Equipamento(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            target.Observacao = expected;
            actual = target.Observacao;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for So
        ///</summary>
        [TestMethod()]
        public void SoTest()
        {
            Equipamento target = new Equipamento(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            target.So = expected;
            actual = target.So;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
